package com.zmsoft.persistent.sfg.Sfg661050PlayerFriend;

import java.util.List;

import javax.annotation.Resource;

import org.cnsoft.framework.db.page.PageModel;
import org.cnsoft.framework.db.support.ext.MyDataBaseOperateSupport2;
import org.springframework.stereotype.Repository;

/**
 * 玩家农场信息数据库操作实体
 */
@Repository("Sfg661050PlayerFriendDao")
//@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class Sfg661050PlayerFriendDao extends MyDataBaseOperateSupport2<Sfg661050PlayerFriendDBO> {
	@Resource
	private Sfg661050PlayerFriendMapper mapperSfg661050PlayerFriend;

	public Sfg661050PlayerFriendMapper getMapper() {
		return mapperSfg661050PlayerFriend;
	}

	// 自定义查询
	public List<Sfg661050PlayerFriendDBO> doSelectDataCustomParams(Sfg661050PlayerFriendDBO formParamBean) {
		return getMapper().doSelectDataCustomParams(formParamBean);
	}

	// 自定义分页查询
	public PageModel<Sfg661050PlayerFriendDBO> doSelectPageCustomParams(PageModel<Sfg661050PlayerFriendDBO> formParamPageModel) {
		// 补充删除标记
		// ((ADataBaseDefaultSupportBean)
		// formParamPageModel.getFormParamBean()).prepareDeleteFlag(1);
		// SAAS模式
		// MySAASBusinesslogicPlugin.sqlHandle((ADataBaseDefaultSupportBean)
		// formParamPageModel.getFormParamBean());
		// 默认排序
		// formParamPageModel.setOrderbyIdDESC();
		// 查询数据
		formParamPageModel.setPageListData(getMapper().doSelectPageCustomParams(formParamPageModel));

		return formParamPageModel;
	}
}
